package chpt05;

public interface Flyable {
	default void flyShow() {
		System.out.print(this);
		fly();
	}
	void fly(); 
	int SPEED_OF_LIGHT = 299792458; 
} 

class Plane implements Flyable{
	
	@Override
	public void fly() {
		System.out.println("使用引擎飞行");
	}
	
}

class Bird implements Flyable{

	@Override
	public void fly() {
		System.out.println("拍动翅膀飞行");
		
	}
	
}
